//
//  UIImageView+YSWebCache.m
//  Yueshi
//
//  Created by Northwan on 15/10/27.
//  Copyright © 2015年 悦食中国. All rights reserved.
//

#import "UIImageView+YSWebCache.h"

@implementation UIImageView (YSWebCache)
- (void)setImageURL:(NSURL *)url placeholder:(UIImage *)placeholder
{
    [self sd_setImageWithURL:url placeholderImage:placeholder options:SDWebImageRetryFailed | SDWebImageLowPriority];
}

- (void)setImageURLStr:(NSString *)urlStr placeholder:(UIImage *)placeholder
{
    [self setImageURL:[NSURL URLWithString:urlStr] placeholder:placeholder];
}

- (void)setImageURLStr:(NSString *)urlStr{
    [self setImageURLStr:urlStr placeholder:[UIImage imageNamed:@"bg_loding_defalut"]];
}
@end
